<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
    
<%@page import="java.util.*, java.sql.*" %>
    
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<link href="style.css" rel="stylesheet" type="text/css" media="screen" />
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>What Is Your Address?</title>
</head>
<body>

<% 
	String residentParam = request.getParameter("resident");
	session.setAttribute( "residentSes", residentParam );
	String residentIDParam = request.getParameter("residentID");
	session.setAttribute( "residentIDSes", residentIDParam);

	
	
	
%>
	<%= session.getAttribute("firstNameSes") %>
	<%= session.getAttribute("middleInitialSes") %>
	<%= session.getAttribute("lastNameSes") %><br>
	Citizen of <%= session.getAttribute("citizenSes") %><br>
	Resident of <%= session.getAttribute("residentSes") %><br>
	<br>
	<br>
			
	
	<%
	if( session.getAttribute("residentSes").equals("United States") ){
		if( session.getAttribute("citizenSes").equals("United States") )
		{%>
			<form method="GET" action="6_DegreeLocation.jsp">
		<%
		}
		else
		{ %>
			<form method="GET" action="5_Residency.jsp">
		<%} %>
		Please enter your address<br><br>
		Address:<input type="text" name="street"/><br>
		City:<input type="text" name="city"/><br>
		State:<input type="text" size="2" name="state"/><br>
		Zip:<input type="text" size="5" name="zip"/><br>
		Area Code:<input type="text" size="4" name="areaCode"/><br>
		Phone:<input type="text" name="phone"/><br>
		<input type="submit" value="Click to Submit"/>

	<% }
	//foreign Country Code
	else{
		if( session.getAttribute("citizenSes").equals("United States") )
		{ %>
			<form method="GET" action="6_DegreeLocation.jsp">
		<%	
		}
		else
		{ %>
			<form method="GET" action="5_Residency.jsp">
		<% } %>
		Please enter your address<br><br>
		Address:<input type="text" name="street"/><br>
		City:<input type="text" name="city"/><br>
		Country Telephone Code:<input type="text" name="countryCode"/><br>
		Zip:<input type="text" size="5" name="zip"/><br>
		Area Code:<input type="text" size="4" name="areaCode"/><br>
		Phone:<input type="text" name="phone"/><br>
		<input type="submit" value="Click to Submit"/>
		
	<% } %>
	
	</form>
	
	


<br><br>


</body>
</html>